package com.zz.tijian.entity.res;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

@Data
@ApiModel(value = "预约日期-预约量")
public class AvailabilityVo {
    @ApiModelProperty(value = "获取万年历的当前日期", example = "2022", required = true)
    private int year;
    @ApiModelProperty(value = "获取万年历的当前日期", example = "06", required = true)
    private int month;
    private List<DayAvailability> days;

    // Getters and Setters

    @Data
    public static class DayAvailability {
        @ApiModelProperty(value = "当月日期", example = "2022-02-07", required = true)
        private LocalDate date;
        @ApiModelProperty(value = "这天是否可以预约（当天内的30天内可以预约）", example = "true", required = true)
        private boolean isOpen;
        @ApiModelProperty(value = "剩余预约量", example = "200", required = true)
        private int remainingSlots;

        // Getters and Setters
    }
}
